{template 'common/header'}
{template 'common/slide'}
<style>
	body{
	font:{$_W['styles']['fontsize']} {$_W['styles']['fontfamily']};
	color:{$_W['styles']['fontcolor']};
	padding:0;
	margin:0;
	background-image:url('{if !empty($_W['styles']['indexbgimg'])}{$_W['styles']['indexbgimg']}{/if}');
	background-size:cover;
	background-color:{if empty($_W['styles']['indexbgcolor'])}#f5f5f5{else}{$_W['styles']['indexbgcolor']}{/if};
	{$_W['styles']['indexbgextra']}
	}
	a{color:{$_W['styles']['linkcolor']}; text-decoration:none;}
	{$_W['styles']['css']}
	.box{width:100%; margin:4.3% 0 1.5% 3.39%;}
	.box .box-item{float:left; text-align:center; display:block; text-decoration:none; outline:none; padding:5px 0px; width:30.9%; margin:0 2% 5% 0; height:75px; border-radius:0.5em; color:#ffffff; overflow:hidden;}
	.box .box-item i{display:inline-block; width:40px; height:40px; line-height:40px; font-size:30px; color:#FFF; overflow:hidden;}
	.box .box-item img{display:inline-block; height:40px; margin:0 auto;}
	.box .box-item span{color:{$_W['styles']['fontnavcolor']};display:block; font-size:14px; width:100%; text-align:center; overflow:hidden; height:20px;}
	.img-box{margin:4.3% 0 1.5% 3.39%; overflow:hidden;}
	.img-box>a{display:block; float:left; text-decoration:none; color:#737373; overflow:hidden; text-align:center; width:31.6%; margin:0 1.72% 3.3% 0; padding-bottom:5px; background-color:#ffffff; border:#e0e0e0 solid 1px; border-radius:0.3em; box-shadow:1px 1px 1px rgba(0,0,0,0.06);}
	.img-box>a i{display:block; width:100%; height:83px; line-height:83px; margin:0 auto; margin-bottom:5px; vertical-align:middle; -webkit-border-top-left-radius:0.3em; -webkit-border-top-right-radius:0.3em;}
	.img-box>a span{color:{$_W['styles']['fontnavcolor']};display:block; width:100%; padding:0 5%; height:20px; font-weight:bold; overflow:hidden;}
</style>
<div class="box clearfix">
	{php $num = 0;}
	{data func="site_navs" section="1" item="nav"}
	{php if($num == 0) $bg = '#ab6269';}
	{php if($num == 1) $bg = '#a9916d';}
	{php if($num == 2) $bg = '#6a8799';}
	{php if($num == 3) $bg = '#b58b7b';}
	{php if($num == 4) $bg = '#977399';}
	{php if($num == 5) $bg = '#97a1b7';}
	<a href="{$nav['url']}" class="box-item" style="background:{$bg};">
		{if !empty($nav['icon'])}
		<img src="{$_W['attachurl']}{$nav['icon']}" style="{$nav['css']['icon']['style']}">
		{else}
		<i class="fa {$nav['css']['icon']['icon']}" style="{$nav['css']['icon']['style']}"></i>
		{/if}
		<span style="{$nav['css']['name']}">{$nav['name']}</span>
	</a>
	{php $num++; if($num > 5) $num = 0;}
	{/data}
</div>
<!--自定义图片-->
<div class="img-box clearfix">
	{data func="site_navs" section="2" item="row"}
	{$row['html']}
	{/data}
</div>
{template 'common/footer'}